import socket

s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.bind(('127.0.0.1', 9999))
print('Server is stared...\nWaiting for connect...')
while True:
	data, addr = s.recvfrom(1024)
	print('Received from %s:%s.' % addr)
	s.sendto(('Hello %s' % data.decode('utf-8')).encode('utf-8') , addr)
